package com.jied.duodian.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DdProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public DdProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add( criteria );
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add( criteria );
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add( criteria );
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException( "Value for condition cannot be null" );
            }
            criteria.add( new Criterion( condition ) );
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException( "Value for " + property + " cannot be null" );
            }
            criteria.add( new Criterion( condition, value ) );
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException( "Between values for " + property + " cannot be null" );
            }
            criteria.add( new Criterion( condition, value1, value2 ) );
        }

        public Criteria andIdIsNull() {
            addCriterion( "id is null" );
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion( "id is not null" );
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion( "id =", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion( "id <>", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion( "id >", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion( "id >=", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion( "id <", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion( "id <=", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion( "id in", values, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion( "id not in", values, "id" );
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion( "id between", value1, value2, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion( "id not between", value1, value2, "id" );
            return (Criteria) this;
        }

        public Criteria andProductSnIsNull() {
            addCriterion( "product_sn is null" );
            return (Criteria) this;
        }

        public Criteria andProductSnIsNotNull() {
            addCriterion( "product_sn is not null" );
            return (Criteria) this;
        }

        public Criteria andProductSnEqualTo(String value) {
            addCriterion( "product_sn =", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnNotEqualTo(String value) {
            addCriterion( "product_sn <>", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnGreaterThan(String value) {
            addCriterion( "product_sn >", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnGreaterThanOrEqualTo(String value) {
            addCriterion( "product_sn >=", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnLessThan(String value) {
            addCriterion( "product_sn <", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnLessThanOrEqualTo(String value) {
            addCriterion( "product_sn <=", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnLike(String value) {
            addCriterion( "product_sn like", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnNotLike(String value) {
            addCriterion( "product_sn not like", value, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnIn(List<String> values) {
            addCriterion( "product_sn in", values, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnNotIn(List<String> values) {
            addCriterion( "product_sn not in", values, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnBetween(String value1, String value2) {
            addCriterion( "product_sn between", value1, value2, "productSn" );
            return (Criteria) this;
        }

        public Criteria andProductSnNotBetween(String value1, String value2) {
            addCriterion( "product_sn not between", value1, value2, "productSn" );
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion( "`name` is null" );
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion( "`name` is not null" );
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion( "`name` =", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion( "`name` <>", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion( "`name` >", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion( "`name` >=", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion( "`name` <", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion( "`name` <=", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion( "`name` like", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion( "`name` not like", value, "name" );
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion( "`name` in", values, "name" );
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion( "`name` not in", values, "name" );
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion( "`name` between", value1, value2, "name" );
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion( "`name` not between", value1, value2, "name" );
            return (Criteria) this;
        }

        public Criteria andActivityIsNull() {
            addCriterion( "activity is null" );
            return (Criteria) this;
        }

        public Criteria andActivityIsNotNull() {
            addCriterion( "activity is not null" );
            return (Criteria) this;
        }

        public Criteria andActivityEqualTo(Integer value) {
            addCriterion( "activity =", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityNotEqualTo(Integer value) {
            addCriterion( "activity <>", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityGreaterThan(Integer value) {
            addCriterion( "activity >", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityGreaterThanOrEqualTo(Integer value) {
            addCriterion( "activity >=", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityLessThan(Integer value) {
            addCriterion( "activity <", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityLessThanOrEqualTo(Integer value) {
            addCriterion( "activity <=", value, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityIn(List<Integer> values) {
            addCriterion( "activity in", values, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityNotIn(List<Integer> values) {
            addCriterion( "activity not in", values, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityBetween(Integer value1, Integer value2) {
            addCriterion( "activity between", value1, value2, "activity" );
            return (Criteria) this;
        }

        public Criteria andActivityNotBetween(Integer value1, Integer value2) {
            addCriterion( "activity not between", value1, value2, "activity" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameIsNull() {
            addCriterion( "category_name is null" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameIsNotNull() {
            addCriterion( "category_name is not null" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameEqualTo(String value) {
            addCriterion( "category_name =", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotEqualTo(String value) {
            addCriterion( "category_name <>", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameGreaterThan(String value) {
            addCriterion( "category_name >", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameGreaterThanOrEqualTo(String value) {
            addCriterion( "category_name >=", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameLessThan(String value) {
            addCriterion( "category_name <", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameLessThanOrEqualTo(String value) {
            addCriterion( "category_name <=", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameLike(String value) {
            addCriterion( "category_name like", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotLike(String value) {
            addCriterion( "category_name not like", value, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameIn(List<String> values) {
            addCriterion( "category_name in", values, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotIn(List<String> values) {
            addCriterion( "category_name not in", values, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameBetween(String value1, String value2) {
            addCriterion( "category_name between", value1, value2, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotBetween(String value1, String value2) {
            addCriterion( "category_name not between", value1, value2, "categoryName" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanIsNull() {
            addCriterion( "hd_ziduan is null" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanIsNotNull() {
            addCriterion( "hd_ziduan is not null" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanEqualTo(Integer value) {
            addCriterion( "hd_ziduan =", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanNotEqualTo(Integer value) {
            addCriterion( "hd_ziduan <>", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanGreaterThan(Integer value) {
            addCriterion( "hd_ziduan >", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanGreaterThanOrEqualTo(Integer value) {
            addCriterion( "hd_ziduan >=", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanLessThan(Integer value) {
            addCriterion( "hd_ziduan <", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanLessThanOrEqualTo(Integer value) {
            addCriterion( "hd_ziduan <=", value, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanIn(List<Integer> values) {
            addCriterion( "hd_ziduan in", values, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanNotIn(List<Integer> values) {
            addCriterion( "hd_ziduan not in", values, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanBetween(Integer value1, Integer value2) {
            addCriterion( "hd_ziduan between", value1, value2, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andHdZiduanNotBetween(Integer value1, Integer value2) {
            addCriterion( "hd_ziduan not between", value1, value2, "hdZiduan" );
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion( "money is null" );
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion( "money is not null" );
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Double value) {
            addCriterion( "money =", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Double value) {
            addCriterion( "money <>", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Double value) {
            addCriterion( "money >", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion( "money >=", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Double value) {
            addCriterion( "money <", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Double value) {
            addCriterion( "money <=", value, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Double> values) {
            addCriterion( "money in", values, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Double> values) {
            addCriterion( "money not in", values, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Double value1, Double value2) {
            addCriterion( "money between", value1, value2, "money" );
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Double value1, Double value2) {
            addCriterion( "money not between", value1, value2, "money" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusIsNull() {
            addCriterion( "verify_status is null" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusIsNotNull() {
            addCriterion( "verify_status is not null" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusEqualTo(Integer value) {
            addCriterion( "verify_status =", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusNotEqualTo(Integer value) {
            addCriterion( "verify_status <>", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusGreaterThan(Integer value) {
            addCriterion( "verify_status >", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion( "verify_status >=", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusLessThan(Integer value) {
            addCriterion( "verify_status <", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusLessThanOrEqualTo(Integer value) {
            addCriterion( "verify_status <=", value, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusIn(List<Integer> values) {
            addCriterion( "verify_status in", values, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusNotIn(List<Integer> values) {
            addCriterion( "verify_status not in", values, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusBetween(Integer value1, Integer value2) {
            addCriterion( "verify_status between", value1, value2, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andVerifyStatusNotBetween(Integer value1, Integer value2) {
            addCriterion( "verify_status not between", value1, value2, "verifyStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion( "delete_status is null" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion( "delete_status is not null" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Integer value) {
            addCriterion( "delete_status =", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Integer value) {
            addCriterion( "delete_status <>", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Integer value) {
            addCriterion( "delete_status >", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion( "delete_status >=", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Integer value) {
            addCriterion( "delete_status <", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) {
            addCriterion( "delete_status <=", value, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Integer> values) {
            addCriterion( "delete_status in", values, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Integer> values) {
            addCriterion( "delete_status not in", values, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Integer value1, Integer value2) {
            addCriterion( "delete_status between", value1, value2, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) {
            addCriterion( "delete_status not between", value1, value2, "deleteStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusIsNull() {
            addCriterion( "publish_status is null" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusIsNotNull() {
            addCriterion( "publish_status is not null" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusEqualTo(Integer value) {
            addCriterion( "publish_status =", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotEqualTo(Integer value) {
            addCriterion( "publish_status <>", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusGreaterThan(Integer value) {
            addCriterion( "publish_status >", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion( "publish_status >=", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusLessThan(Integer value) {
            addCriterion( "publish_status <", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusLessThanOrEqualTo(Integer value) {
            addCriterion( "publish_status <=", value, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusIn(List<Integer> values) {
            addCriterion( "publish_status in", values, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotIn(List<Integer> values) {
            addCriterion( "publish_status not in", values, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusBetween(Integer value1, Integer value2) {
            addCriterion( "publish_status between", value1, value2, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotBetween(Integer value1, Integer value2) {
            addCriterion( "publish_status not between", value1, value2, "publishStatus" );
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion( "description is null" );
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion( "description is not null" );
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion( "description =", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion( "description <>", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion( "description >", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion( "description >=", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion( "description <", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion( "description <=", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion( "description like", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion( "description not like", value, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion( "description in", values, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion( "description not in", values, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion( "description between", value1, value2, "description" );
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion( "description not between", value1, value2, "description" );
            return (Criteria) this;
        }

        public Criteria andStockIsNull() {
            addCriterion( "stock is null" );
            return (Criteria) this;
        }

        public Criteria andStockIsNotNull() {
            addCriterion( "stock is not null" );
            return (Criteria) this;
        }

        public Criteria andStockEqualTo(Integer value) {
            addCriterion( "stock =", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockNotEqualTo(Integer value) {
            addCriterion( "stock <>", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockGreaterThan(Integer value) {
            addCriterion( "stock >", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockGreaterThanOrEqualTo(Integer value) {
            addCriterion( "stock >=", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockLessThan(Integer value) {
            addCriterion( "stock <", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockLessThanOrEqualTo(Integer value) {
            addCriterion( "stock <=", value, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockIn(List<Integer> values) {
            addCriterion( "stock in", values, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockNotIn(List<Integer> values) {
            addCriterion( "stock not in", values, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockBetween(Integer value1, Integer value2) {
            addCriterion( "stock between", value1, value2, "stock" );
            return (Criteria) this;
        }

        public Criteria andStockNotBetween(Integer value1, Integer value2) {
            addCriterion( "stock not between", value1, value2, "stock" );
            return (Criteria) this;
        }

        public Criteria andImgaddIsNull() {
            addCriterion( "imgadd is null" );
            return (Criteria) this;
        }

        public Criteria andImgaddIsNotNull() {
            addCriterion( "imgadd is not null" );
            return (Criteria) this;
        }

        public Criteria andImgaddEqualTo(String value) {
            addCriterion( "imgadd =", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddNotEqualTo(String value) {
            addCriterion( "imgadd <>", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddGreaterThan(String value) {
            addCriterion( "imgadd >", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddGreaterThanOrEqualTo(String value) {
            addCriterion( "imgadd >=", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddLessThan(String value) {
            addCriterion( "imgadd <", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddLessThanOrEqualTo(String value) {
            addCriterion( "imgadd <=", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddLike(String value) {
            addCriterion( "imgadd like", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddNotLike(String value) {
            addCriterion( "imgadd not like", value, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddIn(List<String> values) {
            addCriterion( "imgadd in", values, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddNotIn(List<String> values) {
            addCriterion( "imgadd not in", values, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddBetween(String value1, String value2) {
            addCriterion( "imgadd between", value1, value2, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andImgaddNotBetween(String value1, String value2) {
            addCriterion( "imgadd not between", value1, value2, "imgadd" );
            return (Criteria) this;
        }

        public Criteria andBrandNameIsNull() {
            addCriterion( "brand_name is null" );
            return (Criteria) this;
        }

        public Criteria andBrandNameIsNotNull() {
            addCriterion( "brand_name is not null" );
            return (Criteria) this;
        }

        public Criteria andBrandNameEqualTo(String value) {
            addCriterion( "brand_name =", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameNotEqualTo(String value) {
            addCriterion( "brand_name <>", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameGreaterThan(String value) {
            addCriterion( "brand_name >", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameGreaterThanOrEqualTo(String value) {
            addCriterion( "brand_name >=", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameLessThan(String value) {
            addCriterion( "brand_name <", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameLessThanOrEqualTo(String value) {
            addCriterion( "brand_name <=", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameLike(String value) {
            addCriterion( "brand_name like", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameNotLike(String value) {
            addCriterion( "brand_name not like", value, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameIn(List<String> values) {
            addCriterion( "brand_name in", values, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameNotIn(List<String> values) {
            addCriterion( "brand_name not in", values, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameBetween(String value1, String value2) {
            addCriterion( "brand_name between", value1, value2, "brandName" );
            return (Criteria) this;
        }

        public Criteria andBrandNameNotBetween(String value1, String value2) {
            addCriterion( "brand_name not between", value1, value2, "brandName" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion( "create_time is null" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion( "create_time is not null" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion( "create_time =", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion( "create_time <>", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion( "create_time >", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion( "create_time >=", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion( "create_time <", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion( "create_time <=", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion( "create_time in", values, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion( "create_time not in", values, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion( "create_time between", value1, value2, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion( "create_time not between", value1, value2, "createTime" );
            return (Criteria) this;
        }
    }

    /**
     *
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        protected Criterion(String condition, Object value) {
            this( condition, value, null );
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this( condition, value, secondValue, null );
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        public boolean isListValue() {
            return listValue;
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        public String getTypeHandler() {
            return typeHandler;
        }
    }
}